#import "CDKMarketv1ProductgetproductlistbyfixconditionModel.h"

@interface CDKMarketv1ProductgetproductlistbyfixconditionModel ()

@property (nonatomic, strong) NSMutableDictionary *param;

@end

@implementation CDKMarketv1ProductgetproductlistbyfixconditionModel

- (instancetype)initWithParam:(NSMutableDictionary *)param {      

      self = [super init];      

      if (self) { 
          self.param = [NSMutableDictionary dictionaryWithDictionary:param]; 
          self.isAutoShowLoading = YES; 
          self.isAutoShowBusinessErrorToast = YES; 
          self.parseCls = [CDKMarketv1ProductgetproductlistbyfixconditionItem class]; 
      } 
      return self;
}      

- (NSString *)requestUrl { 
      return KMarketv1ProductgetproductlistbyfixconditionAddress; 
}

- (YTKRequestMethod)requestMethod { 
      return YTKRequestMethodPOST;
}

- (id)requestArgument { 
      return self.param; 
}

- (void)handleDataToMarketv1Productgetproductlistbyfixcondition {

    NSMutableDictionary *params = [NSMutableDictionary new];
    params[@"qutaType"] = @"额度类型";
    params[@"loanType"] = @"贷款类型";
    params[@"sortType"] = @"贷款分类";
    params[@"pageSize"] = @"分页数量，大于30或者小于0将归为20";
    params[@"pageNum"] = @"起始页码，第一页传0";

    [[[CDKMarketv1ProductgetproductlistbyfixconditionModel alloc] initWithParam:params] startWithCompletionBlockWithSuccess:^(__kindof CDKMarketv1ProductgetproductlistbyfixconditionItem *item) {

        NSLog(@"%@",item);

    } failure:^(__kindof NSError *error) {

    }];
}


@end